export const constantRoutes = [
    //layout页
    {
        path: '/',
        component: () => import("@/views/layout/index.vue"),
        redirect: '/home',
        children: [
            {
                path: '/home',
                //@ts-ignore
                component: () => import("@/views/layout/home/index.vue"),
            },
            {
                path: '/data',
                //@ts-ignore
                component: () => import("@/views/layout/data/index.vue"),
            }
        ],
        meta: {},
    },
    //404路由
    {
        path: '/404',
        component: () => import("@/views/404/index.vue"),
    },
    //数据大屏页
    {
        path: '/screen',
        component: () => import("@/views/screen/index.vue"),
    },
    //任意路由
    {
        path: '/:pathMatch(.*)*',
        redirect: '/404',
    }

]